﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/AdminMasterPage.master" AutoEventWireup="true"
    CodeFile="MBouquet.aspx.cs" Inherits="Admin_MBouquet" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<%@ Register Assembly="EO.Web" Namespace="EO.Web" TagPrefix="eo" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div class="content-box">
        <div class="content-box-header">
            <h3>
                Bouquet Manage</h3>
            <div class="clear">
            </div>
        </div>
        <div class="content-box-content">
            <asp:MultiView ID="MultiView1" runat="server" ActiveViewIndex="0">
                <asp:View ID="View1" runat="server">
                    <%--<asp:TextBox ID="txtFindValue" runat="server" Width="250px" CssClass="text-input small-input"
                        Text="ID Bouquet" AutoPostBack="True" OnTextChanged="txtFindValue_TextChanged"></asp:TextBox>--%>
                    <input id="txtFindValue" type="text" runat="server" value="Bouquet Id" onfocus="if(this.value=='Bouquet Id')this.value=''"
                        class="text-input small-input" />
                    <asp:LinkButton ID="lbnSearch" runat="server" CssClass="button" OnClick="lbnSearch_Click"><img src="../images/icons/kinh.png" width="25px" height="20px"/></asp:LinkButton>
                    <br />
                    <br />
                    <div style="border: 1px solid #5fa226; border-radius: 5px;">
                        <asp:GridView ID="grvBou" runat="server" AutoGenerateColumns="False" EnableModelValidation="True"
                            Width="100%" AllowPaging="true" PageSize="5" BorderColor="#CCCCCC" BorderStyle="None"
                            BorderWidth="1px" CellPadding="3" OnPageIndexChanging="grvBou_PageIndexChanging"
                            OnRowCommand="grvBou_RowCommand">
                            <Columns>
                                <asp:TemplateField HeaderText="ID" HeaderStyle-Width="10%">
                                    <ItemTemplate>
                                        <br />
                                        <%#Eval("Id") %>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="Name" HeaderStyle-Width="10%">
                                    <ItemTemplate>
                                        <br />
                                        <%#Eval("Name") %>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="Price" HeaderStyle-Width="10%">
                                    <ItemTemplate>
                                        <br />
                                        <%#Eval("Price") %>
                                        $
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="Details" HeaderStyle-Width="40%">
                                    <ItemTemplate>
                                        <br />
                                        <%#Eval("Details") %>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="Image" HeaderStyle-Width="10%">
                                    <ItemTemplate>
                                        <br />
                                        <img src='<%#Eval("Image") %>' width="100px">
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="Catalog" HeaderStyle-Width="10%">
                                    <ItemTemplate>
                                        <br />
                                        <%#Eval("Cid") %>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderStyle-Width="10%">
                                    <ItemTemplate>
                                        <br />
                                        <asp:LinkButton ID="lbnDel" runat="server" CommandName="DelItem" CommandArgument='<%#Eval("Id") %>'>	<img src="../images/icons/cross.png" alt="Delete" /></asp:LinkButton>
                                        <asp:LinkButton ID="lbnUpdate" runat="server" CommandName="UpdateItem" CommandArgument='<%#Eval("Id") %>'><img src="../images/icons/pencil.png" alt="Edit" /></asp:LinkButton>
                                    </ItemTemplate>
                                </asp:TemplateField>
                            </Columns>
                            <FooterStyle BackColor="White" ForeColor="#000066" />
                            <PagerStyle BackColor="White" ForeColor="#000066" HorizontalAlign="Left" />
                            <SelectedRowStyle BackColor="#669999" Font-Bold="True" ForeColor="White" />
                            <HeaderStyle BackColor="#5fa226" Font-Bold="True" ForeColor="White" Height="50px"
                                Font-Size="16px" />
                        </asp:GridView>
                    </div>
                </asp:View>
                <asp:View ID="View2" runat="server">
                    <asp:Label ID="lblError" runat="server" Text="" ForeColor="Red"></asp:Label>
                    <p>
                        <label>
                            ID:</label>
                        <asp:TextBox ID="txtID" runat="server" Width="300px" CssClass="text-input medium-input"
                            Enabled="false"></asp:TextBox>
                        <br />
                        <br />
                    </p>
                    <p>
                        <label>
                            Name:</label>
                        <asp:TextBox ID="txtName" runat="server" Width="300px" CssClass="text-input medium-input"></asp:TextBox>
                        <br />
                        <br />
                    </p>
                    <p>
                        <label>
                            Price ($):</label>
                        <asp:TextBox ID="txtPrice" runat="server" Width="300px" CssClass="text-input medium-input"></asp:TextBox>
                        <br />
                        <br />
                    </p>
                    <p>
                        <label>
                            Details:</label>
                        <asp:TextBox ID="txtDetails" runat="server" TextMode="MultiLine" Height="100px"></asp:TextBox>
                        <br />
                        <br />
                    </p>
                    <p>
                        <label>
                            Image:</label>
                        <asp:Image ID="imImage" runat="server" Width="200px" Height="200px" />
                        <br />
                        <br />
                        <asp:FileUpload ID="FileUpload1" runat="server" />
                        <br />
                        <br />
                        <asp:Label ID="lblUrl" runat="server" Text="" Visible="false"></asp:Label>
                    </p>
                    <p>
                        <label>
                            Catalog:</label>
                        <asp:DropDownList ID="drlCatalog" runat="server" Width="300px">
                        </asp:DropDownList>
                        <br />
                        <br />
                    </p>
                    <input id="cbxHome" type="checkbox" runat="server" />Displays the home page
                    <br />
                    <br />
                    <br />
                    <asp:Button ID="btnUpdate" runat="server" Text="Update" Width="200px" CssClass="button"
                        OnClick="btnUpdate_Click" />
                    <br />
                </asp:View>
            </asp:MultiView>
        </div>
        <br />
    </div>
</asp:Content>
